package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.SignDetailEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 签到明细表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-24 17:38:26
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class SignDetail extends SignDetailEntity {

	@ApiModelProperty("签到天数")
	private String days;

	@ApiModelProperty("连签天数")
	private String continuousDays;

	public String getDays() {
		return days;
	}

	public void setDays(String days) {
		this.days = days;
	}

	public String getContinuousDays() {
		return continuousDays;
	}

	public void setContinuousDays(String continuousDays) {
		this.continuousDays = continuousDays;
	}

	/**
	 * 构造一个空签到明细表模型对象
	 */
	public SignDetail(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个签到明细表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public SignDetail(SignDetailEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个签到明细表模型对象
	 * 
	 * @param other 其它对象
	 */
	public SignDetail(SignDetail other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public SignDetail id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public SignDetail busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员id
	 * 
	 * @param memberId 会员id
	 * @return 当前对象
	 */
    public SignDetail memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public Integer getPoints() {
    	return points;
    }

    /**
	 * 设置签到获取积分
	 * 
	 * @param points 签到获取积分
	 * @return 当前对象
	 */
    public SignDetail points(Integer points) {
    	this.points = points;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置获取时间
	 * 
	 * @param createdTime 获取时间
	 * @return 当前对象
	 */
    public SignDetail createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public Integer getContinuousDay() {
    	return continuousDay;
    }

    /**
	 * 设置已连续天数
	 * 
	 * @param continuousDay 已连续天数
	 * @return 当前对象
	 */
    public SignDetail continuousDay(Integer continuousDay) {
    	this.continuousDay = continuousDay;
    	return this;
    }
}
